<meta name="format-detection" content="telephone=yes"/>
<meta  http-equiv="x-rim-auto-match" content="none">
<style type="text/css">
    *{margin:auto;padding:0}
    body{
        background-color: #EEEEEE;
    }
    .buttongroup .button{
        width: 30%;
    }
    #minirefresh{
        margin-top: 2.8rem;
    }
    .minirefresh-scroll {
        position: relative;
        background: #ffffff;
    }
    .minirefresh-wrap {
        z-index: -1;
    }

    .menu .menu-title{
        color: #0096d6;
    }

</style>

<div ng-controller="one" ng-cloak style="width: 100%;">
    <f-card style="background-color:#0197D6;overflow:auto;height: 46px;">
            <!-- 搜索类型 -->
            <!--  下拉f-dropdown -->
            <!--<f-dropdown style="float: left;margin-left: 0;width: 25%">所有</f-dropdown>-->

            <f-dropdown id="city" style="float: left;margin-left: 0;width: 70px;" class="selected" value="所有" label="所有" method="getSdmOrders">
                <f-option sort="0" value="所有">所有</f-option>
                <f-option sort="1" value="2">已派单</f-option>
                <f-option sort="2" value="4">已升级</f-option>
                <f-option sort="3" value="5">待签名</f-option>
                <!--<f-option sort="4" value="6">待签名</f-option>-->
                <!--<f-option sort="3" value="3">已改期</f-option>-->
                <!--<f-option sort="1" value="1">待派单</f-option>-->
                <!--<f-option sort="7" value="7">已结单</f-option>-->
                <!--<f-option sort="8" value="8">已关单</f-option>-->
                <!--<f-option sort="9" value="9">信息不匹配SDM拒绝强制关单</f-option>-->
                <!--<f-option sort="10" value="10">DOA关单</f-option>-->
            </f-dropdown>


            <!-- 搜索框  <img src="img/sousuo.png" style="width:11%;height: 17px;margin-top: 7px;margin-left: 8px">-->
            <f-packinput> <f-search id="customeName" style="float: left;width: 52%;background-color:#00ADE0;border-radius: 20px;"  method="checkCustomeName"></f-search></f-packinput>
            <!-- 日历 -->
             <!--<f-time style="float: left"><img src="img/rili.png" style="width:35%;height: 90%;margin-top: 3px;margin-left: 28px"></f-time>-->
             <f-time style="float: right;font-size: 14px;width: 70px;" ng-if="!customeFlag" ng-click="jumpToSign();">会签</f-time>
             <f-time style="float: right;font-size: 14px;width: 70px;line-height: 30px;margin-top: 10px;margin-bottom: 5px;text-align: center;color:white;" ng-if="customeFlag" ng-click="getOrders();">搜索</f-time>
    </f-card>

    <div id="minirefresh" class="minirefresh-wrap">
        <div class="minirefresh-scroll">
             <!-- card1 -->
            <f-card style="border-bottom: 2px solid #F6F6F6;">
                <f-card-label style="float: left;" ng-bind="'总计'+totalCount+'个列表信息'">总计--个列表信息</f-card-label>
                <f-card-label style="float: left;width: 100%;" ng-bind="summaryMessage"></f-card-label>
            </f-card>
            <!-- card2 -->

        <div style="margin-bottom: 60px;">

                <div ng-repeat="item in pageData">
                    <f-card style="float: left;width: 100%;border-bottom:dashed;border-bottom-width: 1px;border-bottom-color: #ccc;">
                        <f-card-label style="float: left;width: 55%">
                            <input type="checkbox" style="float: left;margin-right: 5px;border:0px;width: 20px;margin-top: 9px;" ng-if="item.status==5" ng-click="setFlag(item);" />
                            <!--<f-checkbox style="float: left;margin-right: 5px;border:0px;" ng-if="item.status==6" ng-click="setFlag(item);" ></f-checkbox>-->
                            <f-status-circle ng-if="item.status==5" style="background-color: #822980;"></f-status-circle>
                            <f-status-circle ng-if="item.status==2" style="background-color: #008424;"></f-status-circle>
                            <f-status-circle ng-if="item.status==1 || item.status==3 || item.status==4 || item.status==6 || item.status==7" style="background-color: #822980;"></f-status-circle>
                            <f-card-text style="float: left;width: 52px" ng-bind="item.status==1?'待派单':item.status==2?'已派单':item.status==3?'已预约':
                            item.status==4?'已升级':item.status==5?'待签字':item.status==6?'已结单':item.status==7?'已关单':item.status==8?'升级拒绝关单':item.status==9?'信息不匹配SDM拒绝强制关单':item.status==10?'DOA关单':'未知'">待签字</f-card-text>
                            <f-status-button ng-if="item.serviceType==1" style="background-color: #7C94FC;float: left" ng-bind="item.serviceType==1?'安装':item.serviceType==2?'验机':item.serviceType==3?'撤机':item.serviceType==4?'移机':item.serviceType==5?'巡检':'未知'">--</f-status-button>
                            <f-status-button ng-if="item.serviceType==2" style="background-color: #27ACF5;float: left" ng-bind="item.serviceType==1?'安装':item.serviceType==2?'验机':item.serviceType==3?'撤机':item.serviceType==4?'移机':item.serviceType==5?'巡检':'未知'">--</f-status-button>
                            <f-status-button ng-if="item.serviceType==3" style="background-color: #69FDFF;float: left" ng-bind="item.serviceType==1?'安装':item.serviceType==2?'验机':item.serviceType==3?'撤机':item.serviceType==4?'移机':item.serviceType==5?'巡检':'未知'">--</f-status-button>
                            <f-status-button ng-if="item.serviceType==4" style="background-color: #69FF89;float: left" ng-bind="item.serviceType==1?'安装':item.serviceType==2?'验机':item.serviceType==3?'撤机':item.serviceType==4?'移机':item.serviceType==5?'巡检':'未知'">--</f-status-button>
                            <f-status-button ng-if="item.serviceType==5" style="background-color: #E1FF69;float: left" ng-bind="item.serviceType==1?'安装':item.serviceType==2?'验机':item.serviceType==3?'撤机':item.serviceType==4?'移机':item.serviceType==5?'巡检':'未知'">--</f-status-button>
                            <f-status-button ng-if="item.serviceType!=1 && item.serviceType!=2 && item.serviceType!=3 && item.serviceType!=4 && item.serviceType!=5" style="background-color: #FF6969;float: left" ng-bind="item.serviceType==1?'安装':item.serviceType==2?'验机':item.serviceType==3?'撤机':item.serviceType==4?'移机':item.serviceType==5?'巡检':'未知'">--</f-status-button>
                        </f-card-label>

                        <f-card-text style="float: left;width: 45%" ng-bind="item.createTime | date:'yyyy-MM-dd HH:mm'">--</f-card-text>
                        <f-card-title style="float: left;width: 50%;" ng-bind="item.caseNum">--</f-card-title>
                        <f-a ng-click="az2(item.caseId)" style="float: left;width: 50%;">更多详情</f-a>
                    </f-card>

                    <!--    <f-line></f-line>-->
                    <f-card>
                        <f-card-label style="float: left">联系人</f-card-label>
                        <f-card-text style="float: left" ng-bind="item.contactPerson">--</f-card-text>

                        <f-card-label style="float: left">联系电话</f-card-label>
                        <!--href="tel:{{item.telephone}}"-->
                        <f-a style="float: left;color:#0197d6;"><a ng-click="phoneCall(item.telephone,item.caseId)" style="color:#0197d6;position:relative;"><i class="fa fa-mobile" style="position:absolute;left:-90px;top:5px;color:#666;font-size:20px;"></i>{{item.telephone}}</a></f-a>

                        <f-card-label style="float: left">公司名称</f-card-label>
                        <f-card-text style="float: left" ng-bind="item.customeName">--</f-card-text>

                        <f-card-label style="float: left;width: 25%">联系地址</f-card-label>
                        <f-card-text style="float: left;width: 75%;height: 64px;" ng-bind="item.address">--</f-card-text>


                        <f-card-label style="float: left" ng-if="item.appointmentTime!='' && item.appointmentTime!=null">预约日期</f-card-label>
                        <f-card-text style="float: left" ng-if="item.appointmentTime!='' && item.appointmentTime!=null" ng-bind="item.appointmentTime | date:'yyyy-MM-dd'">--</f-card-text>

                        <f-card-label style="float: left">截止日期</f-card-label>
                        <f-card-text style="float: left" ng-bind="item.dueDate | date:'yyyy-MM-dd'">--</f-card-text>
                    </f-card>
                    <f-card style="background-color: #F7F7F7;">
                        <f-buttongroup ng-if="item.status==2 || item.status==5">
                            <f-button style="line-height: 20px;float: left;padding:5px 20px;" ng-click="az2(item.caseId)">开始工作</f-button>
                            <f-button style="line-height: 20px;float: left;margin-left: 5%;padding: 5px 20px;" ng-click="seven(item.caseId,item.dueDate)">预约上门</f-button>
                            <f-button style="line-height: 20px;float: left;margin-left: 5%" ng-click="eight(item.caseId,item.dueDate)">升级</f-button>
                        </f-buttongroup>
                    </f-card>
                </div>
        </div>

            </div>
        </div>

            <!--底部菜单-->
            <div class="menu" style="z-index: 2;">
                <div class="menu-content">
                    <img src="./img/workarea_pressed.png">
                    <span class="menu-title">工作区</span>
                </div>
                <div class="menu-content" ng-click="jumpTo(2);">
                    <img src="./img/my_default.png">
                    <span>我的</span>
                </div>
            </div>
        </div>
<script src="../js/loading.js"></script>


